package com.yanqu.road.server.manger.activity.commonteam.activitytypehandler.handler;

import com.yanqu.road.entity.enums.eSystemId;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.shanshui.XingYouShanShuiModule;
import com.yanqu.road.server.manger.activity.commonteam.activitytypehandler.CommonTeamActivityTypeStrategy;
import com.yanqu.road.server.manger.config.SystemOpenMgr;

public class XingYouShanShuiStrategy implements CommonTeamActivityTypeStrategy {

    @Override
    public boolean checkSystemUnlock(GamePlayer player) {
        return SystemOpenMgr.systemOpen(player, eSystemId.XingYouShanShui.getValue());
    }

    @Override
    public long getPower(GamePlayer player, int activityId) {
        return player.getModule(XingYouShanShuiModule.class).getPower(activityId);
    }
}
